const Controller = require('egg').Controller;
const BaseController = require('./base');

class CommonsController extends BaseController {
  async citys() {
    const { ctx, app } = this;
    const data = [
      [
        {
          label: '杭州',
          value: '10001'
        },
        {
          label: '苏州',
          value: '10002'
        },
        {
          label: '上海',
          value: '10003'
        },
        {
          label: '深圳',
          value: '10004'
        },
        {
          label: '上饶',
          value: '10006'
        },
        {
          label: '理塘',
          value: '10007'
        },
        {
          label: '拉萨',
          value: '10008'
        },
        {
          label: '长白山',
          value: '10009'
        }
      ]
    ]
    this.success(data)
  }
}

module.exports = CommonsController;